<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header">
</head>

<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <form class="layui-form layui-form-pane" action="">
                <input type="hidden" id="id" name="id" th:value="${terminal.id}" />
                <input type="hidden" id="tab_id" name="tab_id" th:value="1" />
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <select name="shopId" id="shopId" lay-search="">
                            <option value="">所属企业</option>
                            <th:block th:each="d : ${shops}">
                                <option th:value="${d.id}" th:text="${d.shopName}"></option>
                            </th:block>
                        </select>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">设备编号</label>
                        <div class="layui-input-inline">
                            <input type="text" id="terminalNum" name="terminalNum" th:value="${terminal.terminalNum}" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">开始时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="begin_date" id="begin_date" th:value="${begin_date}" placeholder="请选择开始时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">结束时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="end_date" id="end_date" th:value="${end_date}" placeholder="请选择结束时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button type="submit" class="layui-btn layui-btn-primary  layui-btn-sm" lay-submit lay-filter="data-search-btn">
                            <i class="layui-icon"></i> 搜 索</button>
                    </div>
                </div>
            </form>
        </fieldset>

        <div class="layui-tab" style="margin-top: 10px;" lay-filter="test">
            <ul class="layui-tab-title">
                <li lay-id="1" class="layui-this" >巡检记录</li>
                <li lay-id="2">清理记录</li>
                <li lay-id="3">保养记录</li>
                <li lay-id="4">维修记录</li>
<!--                <li lay-id="5">设备详情</li>-->
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table class="layui-hide" id="exampleTable1" lay-filter="currentTableFilter"></table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-hide" id="exampleTable2" lay-filter="currentTableFilter"></table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-hide" id="exampleTable3" lay-filter="currentTableFilter"></table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-hide" id="exampleTable4" lay-filter="currentTableFilter"></table>
                </div>
<!--                                设备详情-->
<!--                <div class="layui-tab-item layui-show">-->
<!--                    <table class="layui-hide" id="exampleTable5" lay-filter="currentTableFilter"></table>-->
<!--                </div>-->
            </div>
        </div>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
<div th:include="@{include} :: footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/terminal/terminal_allinfo.js}"></script>
</body>
</html>
